﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FiberVisible
{
    public partial class Text : Form
    {
        /// <summary>
        /// 纤维信息
        /// </summary>
        private string text { set; get; }

        public Text(List<string> list)
        {
            InitializeComponent();
            text = "section Fiber $ID {";
            //遍历纤维信息
            list.ForEach(str => text += "\r\n" + str);
            text += "\r\n}";
            this.RichTextBox.Text = text;
        }

        private void Close_Button_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void Copy_Button_Click(object sender, EventArgs e)
        {
            Clipboard.SetDataObject(text);
            MessageBox.Show("Done.");
        }
    }
}
